
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<x:parse xml="${param.xmlstr}" var="xmlData" />
<table class="t_css" width="100%" border="0" cellpadding="0"
	id="orgInfo" cellspacing="1">
	<tr>
		<td colspan="6" class="t_bar">单位基本信息</td>
	</tr>
	<tr>
		<td width="10%" nowrap align="right">单位名称：</td>
		<td colspan='3'><input type="hidden"
			name="organizations/organization[0]@submit_org" value="1"> <input
			type="hidden" name="organizations/organization[0]@sequence_no"
			value="1"> <input type="hidden"
			name="organizations/organization[0]/org_code"
			value="<x:out select="$xmlData/data/organizations/organization[@submit_org=1]/org_code"/>">
			<span name="organizations/organization[0]/cname"><x:out
					select="$xmlData/data/organizations/organization[@submit_org=1]/org_name" />
		</span></td>
		<td align="right">单位电话：</td>
		<td ><span name="organizations/organization[0]/org_tel">
				<x:out select="$xmlData/data/organizations/organization[@submit_org=1]/org_tel" />
		</span>
		</td>
	</tr>
	<tr>
		<td nowrap align="right">法人代码：</td>
		<td><span name="organizations/organization[0]/org_no"><x:out
					select="$xmlData/data/organizations/organization[@submit_org=1]/org_no" />
		</span></td>
		<td nowrap align="right">营业执照注册号：</td>
		<td><span
			name="organizations/organization[0]/org_licence"><x:out
					select="$xmlData/data/organizations/organization[@submit_org=1]/org_licence" />
		</span></td>
		<td nowrap align="right">国税登记证号：</td>
		<td><span name="organizations/organization[0]/tax_internal_no"><x:out
             select="$xmlData/data/organizations/organization[@submit_org=1]/tax_internal_no" />
		</span></td>
	</tr>
	<tr>
	    <td nowrap align="right">通讯地址：</td>
		<td ><span
			name="organizations/organization[0]/address"> <x:out
					select="$xmlData/data/organizations/organization[@submit_org=1]/address" />
		</span></td>
		<td nowrap align="right">电子邮箱：</td>
		<td ><span
			name="organizations/organization[0]/email"> <x:out
					select="$xmlData/data/organizations/organization[@submit_org=1]/email" />
		</span></td>
		<td nowrap align="right">地税登记证号：</td>
		<td><span name="organizations/organization[0]/tax_local_no"><x:out
					select="$xmlData/data/organizations/organization[@submit_org=1]/tax_local_no" /></span></td>
   </tr>
   <tr>
		<td nowrap align="right">开户银行：</td>
		<td><span name="organizations/organization[0]/bank_orgname">
				<x:out
					select="$xmlData/data/organizations/organization[@submit_org=1]/bank_orgname" />
		</span></td>
		<td nowrap align="right">银行账号：</td>
		<td><span name="organizations/organization[0]/bank_account">
				<x:out
					select="$xmlData/data/organizations/organization[@submit_org=1]/bank_account" />
		</span></td>
		<td nowrap align="right">信用等级：</td>
		<td><span name="organizations/organization[0]/bank_credit">
				<x:out
					select="$xmlData/data/organizations/organization[@submit_org=1]/bank_credit" />
		</span></td>
	</tr>
	<tr>
	<td nowrap align="right">注册时间：</td>
		<td><span name="organizations/organization[0]/registe_date">
				<x:out
					select="$xmlData/data/organizations/organization[@submit_org=1]/registe_date" />
		</span></td>
		<td nowrap align="right">现有注册资本：</td>
		<td ><span name="organizations/organization[0]/registe_fund">
				<x:out
					select="$xmlData/data/organizations/organization[@submit_org=1]/registe_fund" />万<x:out
					select="$xmlData/data/organizations/organization[@submit_org=1]/registe_fund_money_name" />
		</span></td>
		<td nowrap align="right">注册类型：</td>
		<td><span name="organizations/organization[0]/nature_name">
				<x:out
					select="$xmlData/data/organizations/organization[@submit_org=1]/nature_name" />
		</span></td>
	</tr>
	<tr>
		<td align="right" width="150px">单位负责人：</td>
		<td width="200px"><span name="organizations/organization[0]/responsible_name">
				<x:out select="$xmlData/data/organization_persons/person[@type='fuzeren']/cname" />
		</span>&nbsp; 
		</td>
		<td align="right" width="100px">电话：</td>
		<td width="200px"><span name="organizations/organization[0]/responsible_tel">
				<x:out select="$xmlData/data/organization_persons/person[@type='fuzeren']/tel" />
		</span>&nbsp; 
		</td>
		<td align="right" width="150px">手机：</td>
		<td width="200px"><span name="organizations/organization[0]/responsible_mobile">
				<x:out select="$xmlData/data/organization_persons/person[@type='fuzeren']/mobile" />
		</span>&nbsp; 
		</td>
	</tr>
	<tr>
		<td align="right" width="10%" nowrap>联系人：</td>
		<td><span name="proposal/contact_name"><x:out
					select="$xmlData/data/organization/contact_info/contact_name" />&nbsp;
		</span></td>
		<td align="right" width="10%" nowrap>电话：</td>
		<td><span name="proposal/contact_tel"><x:out
					select="$xmlData/data/organization/contact_info/contact_tel" />&nbsp;
		</span></td>
	    <td align="right" nowrap>手机：</td>
		<td><span name="proposal/contact_mobile"><x:out
					select="$xmlData/data/organization/contact_info/contact_mobile" />&nbsp;
		</span></td>
		
	</tr>
	<tr>
		<td width="" nowrap align="right">经营范围：</td>
		<td colspan='5'><span
			name="organizations/organization[0]/opt_scope"> <x:out
					select="$xmlData/data/organizations/organization[@submit_org=1]/opt_scope" />
		</span></td>
	</tr>
     <tr>
		<td align="right" nowrap><span class="color_red">*</span>近两年银行贷款总额：</td>
		<td >
		<input name="proposal/loan_ceiling" id="loan_ceiling" label="近两年银行贷款总额" class="required valueGreatEqual:loan_ceiling:balance" style="text-align:right;width:130px;"
			onfocus="InitInput.setNumber(this,7,4,2);" onchange="repayClean(this.id,'repay','colorRed');" value="<x:out select="$xmlData/data/proposal/loan_ceiling" />"/>万元&nbsp;
		</td>
		<td align="right"><span class="color_red">*</span>余额：</td> 
		<td >
		    <input name="proposal/balance" id="balance" label="近两年银行贷款总额->余额" style="text-align:right;width:130px;" onfocus="InitInput.setNumber(this,7,4,2)" class="required" value="<x:out
					select="$xmlData/data/proposal/balance" />"/>万元&nbsp;
	    </td>
	    <td nowrap align="right"><span class="color_red" id="colorRed">*</span>到期偿还情况：</td>
		 <td colspan='2'>
		<c:set var="repay_value"><x:out select="$xmlData/data/proposal/repay_value" /></c:set>
		<input name="proposal/repay_value" id="repay_value" type="hidden" value="<x:out select="$xmlData/data/proposal/repay_value" />"  label="近两年银行贷款总额->到期偿还情况"/>
		<input name="proposal/repay_name" id="repay_name" type="hidden" value="<x:out select="$xmlData/data/proposal/repay_name" />" />
		<cpt:select id="repay" key="repay"  onChange="initControlValue('repay')"  value="${repay_value}"></cpt:select> 
	    </td>
	  </tr>
	

</table>
<br>
<div class="t_bar">主要股东</div>
<table border="0" cellspacing="0" cellpadding="0" class="table01">
	<thead>
		<tr>
			<th align="center" width="5%" nowrap>序号</th>
			<th align="center" width="40%" nowrap>主要股东名称</th>
			<th width="20%" align="center">股东出资额(万元)</th>
			<th width="20%">出资形式</th>
			<th width="15%">所占股份比例（%）</th>

		</tr>
	</thead>
	<tbody id="tab">
		<c:set value="0" var="index" scope="page" />
		<x:forEach
			select="$xmlData/data/organization_shareholders/shareholder"
			var="shareholder">
			<c:choose>
				<c:when test="${index<10}">
					<c:set value="0" var="flag" scope="page" />
				</c:when>
				<c:otherwise>
					<c:set value="" var="flag" scope="page" />
				</c:otherwise>
			</c:choose>
			<tr>
				<td align="center"><span
					name="organizations/shareholders/shareholder[${flag}${index}]@sequence_no">${index+1}</span>
				</td>
				<td ><span
					name="organizations/shareholders/shareholder[${flag}${index}]/cname">
						<x:out select="$shareholder/cname" />
				</span></td>
				<td align="center"><span
					name="organizations/shareholders/shareholder[${flag}${index}]/invest_amount">
						<x:out select="$shareholder/invest_amount" />
				</span></td>
				<td align="center"><span
					name="organizations/shareholders/shareholder[${flag}${index}]/invest_type_name">
						<x:out select="$shareholder/invest_type_name" />
				</span></td>
				<td align="center"><span
					name="organizations/shareholders/shareholder[${flag}${index}]/invest_percent">
						<x:out select="$shareholder/invest_percent" />
				</span></td>
			</tr>
			<c:set value="${index+1}" var="index" scope="page" />
		</x:forEach>
	</tbody>
</table>

<br>
<div class="t_bar">近三年曾获政府资助的情况（金额：万元）</div>
<table border="0" cellspacing="0" cellpadding="0" class="t_css table01">
	<thead>
		<tr>
			<th align="center" nowrap>项目名称</th>
			<th width="13%" align="center">资助部门</th>
			<th width="10%">资助时间</th>
			<th width="10%">资助金额</th>
			<th width="10%" nowrap="nowrap">资助形式</th>
			<th width="10%" nowrap="nowrap">项目验收情况</th>
			<th width="10%">验收时间</th>
		</tr>
	</thead>
	<tbody id="tab">
		<c:set value="0" var="index" scope="page" />
		<x:forEach select="$xmlData/data/organization_research/fund_project"
			var="research">
			<c:choose>
				<c:when test="${index<10}">
					<c:set value="0" var="flag" scope="page" />
				</c:when>
				<c:otherwise>
					<c:set value="" var="flag" scope="page" />
				</c:otherwise>
			</c:choose>
			<tr>
				<td ><span
					name="organization_research/fund_project[${flag}${index}]/ctitle">
						<x:out select="$research/ctitle" />
				</span></td>
				<td ><span
					name="organization_research/fund_project[${flag}${index}]/award_dept">
						<x:out select="$research/award_dept" />
				</span></td>
				<td align="center"><span
					name="organization_research/fund_project[${flag}${index}]/award_date">
						<x:out select="$research/award_date" />
				</span></td>
				<td align="center"><span
					name="organization_research/fund_project[${flag}${index}]/award_amt">
						<x:out select="$research/award_amt" />
				</span></td>
				<td align="center"><span
					name="organization_research/fund_project[${flag}${index}]/award_type_name">
						<x:out select="$research/award_type_name" />
				</span></td>

				<td align="center"><span
					name="organization_research/fund_project[${flag}${index}]/accept_flag_name">
						<x:out select="$research/accept_flag_name" />
				</span></td>
				<td align="center"><span
					name="organization_research/fund_project[${flag}${index}]/accept_date">
						<x:out select="$research/accept_date" />
				</span></td>
			</tr>
			<c:set value="${index+1}" var="index" scope="page" />
		</x:forEach>
      <tr>
			<td align="center"><span class="color_red">*</span>近三年是否存在不予资助情况<br/>（限200字）</td>
			<td align="center" colspan='6'>
			<textarea id="brief" name="research/no_funding" rows='7' cols='120' class="required textarea maxlength:200" label="近三年是否存在不予资助情况"><x:out select="$xmlData/data/research/no_funding" /></textarea>
			 <input type="hidden" name="research/no_funding_hidden" value="">
			</td>
		</tr>
	</tbody>
</table>
<script>
$(document).ready (function() {
	repayClean('loan_ceiling','repay','colorRed');
	
});
function repayClean(obj,string1,string2){
	var value=$("#"+obj).val();
	
	if(value==0){
		$("#"+string1+"_value").removeClass("required");
		$("#"+string1).attr("disabled",true);
		$("#"+string2).hide();
		$("#"+string1).val("");
		$("#"+string1+"_value").val("");
		$("#"+string1+"_name").val("");
	}
	else
		{
		$("#"+string1+"_value").addClass("required");
		$("#"+string1).attr("disabled",false);
		$("#"+string2).show();
		}
	
}
</script>






